const mongoose = require('mongoose');
const materializedPlugin = require('mongoose-materialized');
const Schema = mongoose.Schema;
const ObjectId = Schema.ObjectId;

var CateSchema = new Schema({
    type: {type: Number},
    title: {type:String}
});


CateSchema.plugin(materializedPlugin);
module.exports = mongoose.model('Cate', CateSchema,'cate'); // Category